package com.gaojinqi.user.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @author gaojinqi
 * @date 2019/5/30 1:59
 */
@Data
@Entity
@DynamicInsert
@DynamicUpdate
public class UserInfo {

    @Id
    private String id;

    private String username;

    private String password;

    private String openid;

    private Integer role;

}
